package com.heima.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.common.article.pojos.ApArticle;
import com.heima.model.common.dtos.ArticleHomeDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ApArticleMapper extends BaseMapper<ApArticle> {
 /**
  * 加载文章
  * @param articleHomeDto
  * @param type  1加载更多，2加载最新
  * @return
  */
 public List<ApArticle> loadArticleList(@Param("articleHomeDto") ArticleHomeDto articleHomeDto, @Param("type") Short type);
 }
